﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SearchScreen.SDK
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public sealed class GroupAttribute : System.Attribute
    {
        /// <summary>
        /// Gets the index.
        /// </summary>
        /// <value>
        /// The index.
        /// </value>
        public int Index { get; private set; }

        /// <summary>
        /// Gets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public string Name { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="GroupAttribute"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="index">The index.</param>
        public GroupAttribute(string name, int index = 0)
        {
            this.Name = name;
            this.Index = index;
        }
    }
}
